package build2;

public class Person {
    private int id;
    private String name;
    private int age;
    private String sex;


    public static Person builder(){
        return new Person();
    }

    public Person id(int id){
        this.id = id;
        return this;
    }

    public Person name(String name){
        this.name = name;
        return this;
    }

    public Person age(int age){
        this.age=age;
        return this;
    }

    public Person sex(String sex){
        this.sex = sex;
        return this;
    }

    public Person build(){
        return this;
    }
}
